/*
 *    Copyright (c) 2018-2025, nart All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: nart
 */

package com.nai365.nart.member.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.nai365.nart.common.core.util.R;
import com.nai365.nart.common.core.vo.WalletChangeVo;
import com.nai365.nart.member.entity.Wallet;

import java.util.List;

/**
 * 钱包表
 *
 * @author baogs
 * @date 2022-07-07 09:46:29
 */
public interface WalletService extends IService<Wallet> {

    /*
     *
     * 修改钱包信息
     * */
    boolean updateMoney(Wallet wallet);

    /*
     * 得到wallet数据，如果没有就创建后再得到
     * */
    Wallet getWalletById(Long id);

    void updateAllPhone();

	R<Wallet> getWalletInner(Long userId);

	R changeWallet(WalletChangeVo changeVo);

	R changeWallet(List<WalletChangeVo> changeVos);

    abstract Wallet getWallet(Long userId);

	Wallet findWalletByUserId(Long userId);
}
